<div class="brand_recommend"> 
<a href="brand.php" class="more">更多</a>
<div style="height:40px; line-height:40px; clear:both; visibility:hidden;"></div>
<a id="leftbtn1" target="_self" href="javascript:void(0);" class="cursor"></a>
 <div id="rollphoto1" class="rollcon">
      <ul id=show_best_area>
        <?php $_from = $this->_var['brand_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'brand');$this->_foreach['brand_foreach'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['brand_foreach']['total'] > 0):
    foreach ($_from AS $this->_var['brand']):
        $this->_foreach['brand_foreach']['iteration']++;
?>
        <?php if (( $this->_foreach['brand_foreach']['iteration'] % 2 ) == 1): ?>
         <li>
         <p class="brand_show"><a href="<?php echo $this->_var['brand']['url']; ?>"><img src="data/brandlogo/<?php echo $this->_var['brand']['brand_logo']; ?>" width="122" height="30" alt="<?php echo htmlspecialchars($this->_var['brand']['brand_name']); ?> (<?php echo $this->_var['brand']['goods_num']; ?>)" /><span><?php echo htmlspecialchars($this->_var['brand']['brand_name']); ?></span></a></p>
        
        <?php elseif (( $this->_foreach['brand_foreach']['iteration'] % 2 ) == 0): ?>
        <p class="brand_show"><a href="<?php echo $this->_var['brand']['url']; ?>"><img src="data/brandlogo/<?php echo $this->_var['brand']['brand_logo']; ?>" width="122" height="30" alt="<?php echo htmlspecialchars($this->_var['brand']['brand_name']); ?> (<?php echo $this->_var['brand']['goods_num']; ?>)" /><span><?php echo htmlspecialchars($this->_var['brand']['brand_name']); ?></span></a></p>
        </li>
        
        <?php else: ?>
        <li>
         <p class="brand_show"><a href="<?php echo $this->_var['brand']['url']; ?>"><img src="data/brandlogo/<?php echo $this->_var['brand']['brand_logo']; ?>" width="122" height="30" alt="<?php echo htmlspecialchars($this->_var['brand']['brand_name']); ?> (<?php echo $this->_var['brand']['goods_num']; ?>)" /><span><?php echo htmlspecialchars($this->_var['brand']['brand_name']); ?></span></a></p>
        </li>
        <?php endif; ?>

        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  
      </ul>
      </div>
      <a id="rightbtn1" target="_self" href="javascript:void(0);" class="cursor2"></a>   
      </div>

<script language=javascript type=text/javascript>
	var scrollPic_01 = new ScrollPic();
	scrollPic_01.scrollContId   = "rollphoto1"; //内容容器ID
	scrollPic_01.arrLeftId      = "leftbtn1";//左箭头ID
	scrollPic_01.arrRightId     = "rightbtn1"; //右箭头ID
	scrollPic_01.frameWidth     = 680;//显示框宽度
	scrollPic_01.pageWidth      = 136; //翻页宽度
	scrollPic_01.speed          = 7; //移动速度(单位毫秒，越小越快)
	scrollPic_01.space          = 10; //每次移动像素(单位px，越大越快)
	scrollPic_01.autoPlay       = true; //自动播放
	scrollPic_01.autoPlayTime   = 5; //自动播放间隔时间(秒)
	scrollPic_01.initialize(); //初始化
</script>




